//
//  DefaultStyleTableViewCell.m
//  CMVRFForIOS
//
//  Created by 韩海龙 on 15/3/31.
//  Copyright (c) 2015年 hvacapp. All rights reserved.
//

#import "DefaultStyleTableViewCell.h"

@implementation DefaultStyleTableViewCell

-(void)layoutSubviews{
    [super layoutSubviews];
    
    //textLabel上移5px
    //detailTextLabel下移5px
    int cellHeight = self.frame.size.height;
    
    int x = self.textLabel.x;
    
    self.textLabel.frame = CGRectMake(x, 5, self.textLabel.frame.size.width, cellHeight/2);
    self.textLabel.width = kScreen_Width - 20;
    self.textLabel.font = [UIFont systemFontOfSize:kListTitleFontSize];
    self.textLabel.textColor = CM_TABLE_TITLE_COLOR;
    
    self.detailTextLabel.frame = CGRectMake(x, CGRectGetMaxY(self.textLabel.frame)-10, self.detailTextLabel.frame.size.width, cellHeight/2);
    self.detailTextLabel.width = kScreen_Width - 20;
    self.detailTextLabel.font = [UIFont systemFontOfSize:kListDetailFontSize];
    self.detailTextLabel.textColor = CM_TABLE_DETAIL_COLOR;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
